Editor's Note (2023): You are reading an archive from 2014. This wiki concerns the Minecraft mod Ancient Warfare, version 1. Neither this wiki nor this version of the mod are being updated. If you are looking for the sequel, Ancient Warfare 2, visit CurseForge. If you are looking for the indie game series, visit JNI Games. If you are looking for Ancient Warfare the magazine, visit Karwansaray Publishers.

Command Baton


The Command Baton is the main method for advanced interfacing with NPCs in Ancient Warfare. The command baton allows you to issue orders to specific NPCs or, at higher baton ranks, all NPCs in a radius. Most commands have a single target, and some commands will allow entity targets. Commands are executed by left-clicking on the target for the command (or any block for commands with no target).

The command Baton(s) is crafted at the NPC recruiting station. (see crafting page).

Additionally, the Command Baton provides two convenience commands available through right-click interaction -- Move-To and Attack Target. If you have NPCs following you, or in range (Master Baton) and you right-click the Command Baton, it will issue either a Move-To or an Attack-Target command depending upon if you are targeting an entity or a block. Attack-Target command will only issue attack commands on entities that are on the NPCs aggro list (set via config file).

AW baton command menu GUI.png

Commands

The commands available are: (accessible via a GUI menu opened from shift right clicking whilst holding the baton seen above)

Patrol Point

Add a patrol point to the patrol route for the commanded NPCs. Block clicked on is the target.

Clear Patrol Route

Clear the entire patrol route for the commanded NPCs. No target.

Work at Site

Set the work-site for the commanded NPCs. If too many NPCs are told to work a single site, only as many as can actually work there will obey the command. Block clicked on is the target. If the NPC is set to accept work broadcasts, broadcast work may become higher priority when the commanded work-site has no work (and the NPC will then switch work-sites).

Clear Work Site

Clear the set work-site for the commanded NPCs. No target.

Set Home Point

Set the 'Home' point for the commanded NPCs. NPCs will stay within a certain radius of their home point when wandering / chasing targets (or will return to within that radius shortly). The 'Home' point is used as the shelter site for NPC's, and they will return to their home point at night, when it it is snowing/raining, or whenever they can 'see' hostile mobs.

Clear Home Point

Clear the set home-point for the commanded NPCs. NPCs with no home point will wander freely (even into unloaded chunks), and will continue working at night or in bad weather. However, they will also be vulnerable to any monsters at night, and will tend to wander far away if left in open lands.

Set Upkeep Point

Set the specific upkeep point for the commanded NPCs. This is the inventory from which an NPC will attempt to withdraw his upkeep/food cost. This point may be any block _or_ entity that implements IInventory, and is not cleared automatically if the block is removed or entity dies ( you will need to manual reset if you change setups ). Town-halls broadcast a 'upkeep point' message, and any nearby (and friendly) NPCs without upkeep points should have their set automatically (can manually re-assign if wanted/needed).

Clear Upkeep Point

Clear the set upkeep point for the commanded NPCs. If an NPC has no upkeep point, whenever he becomes hungry he will stop working and stand around wherever he was working or wandering at.

Set Mount Target

For Siege-Engineers only -- set the preferred mount target for the commanded NPC(s). Should only be used on a single NPC at a time, and preferably on an empty vehicle. Attempts to assign multiple NPCs to the same vehicle will fail (a single NPC will claim the vehicle, and the rest will ignore the order)

Clear Mount Target

Clears any preferred mount target for the commanded NPCs. Siege-engineers will auto-reassign to the closest available vehicle.

Set Guard Target

Set an entity target for the commanded NPCs to guard. They will attempt to stay within close proximity of this target while following all other attack/target AI scripting.

Clear Guard Target

Clear any set guard target for the commanded NPCs. They will revert to normal/default/patrol routing and attack scripting.

Accept Work Broadcast

This will set the 'accept work broadcast' flag on any commanded NPCs to TRUE. These NPCs will accept new work-broadcasts from work-sites, and dynamically work multiple sites if available.

Ignore Work Broadcast

This will set the 'accept work broadcast' flag on any commanded NPCs to FALSE. These NPCs will not accept work-broadcasts from work-sites, and will continue working at whatever site the player has set for them (as long as it has work).